package hlkj.server;

import java.io.UnsupportedEncodingException;
import java.net.URLEncoder;
import java.util.Date;

import com.jfinal.kit.PropKit;

import jxl.common.Logger;
import hlkj.util.ConnectionUrlUtil;
import hlkj.util.ServiceMsg;
import hlkj.util.ServiceMsg.SimplMsg;
import lxycx.util.http.RequestPro;
import net.sf.json.JSONObject;

public class Ahyz_SMS extends SendOut{
	private static Logger log = Logger.getLogger(Ahyz_SMS.class);
	
	//发送短信
	public  String send_msg(String phone,String msg){
		return "短信接口尚未开发";
	}
	
	
	protected String getToken() {
		/*String url = "http://aliyun.10006.info/wjrwx/out/getBaseToken";
		String appid = "wx474c9dc5e33427a8";//"wxa6aa986770a876a2";
		String secret = "1d374f6305f3fc3ae97142d55772eeab";//"e80483f9ebcff9d0201682784239f6e4";
		String timestr = new Date().getTime()+"";
		String sign = Md5Util.md5Encode(AES3.Encrypt("ALTST"+timestr));
		
		String param = "kid=4&timestamp="+timestr+"&sign="+sign+"&appid="+appid+"&appsecret="+secret;
		String retjson = RequestPro.send(url+"?"+param, null);
		JSONObject json = JSONObject.fromObject(retjson);
		log.info("TokenJson:"+json);
		return json.containsKey("accessToken")?json.getString("accessToken"):"";*/
		return "23_CJmOJP8vNscfrkCFvLo66nMVudLyfjNXBtn8xIPCdPbph_1abV5Nzhwf2e5Ed21P70j9UFT9h9MS-pTaBye9L5IZQ-fXyP4VtF_HLdgjd-mm5gfA3KI26PatuEvYQCXxbzfZ4IJx9ys0ZSC3DNGjCBATDW";
	}
	
}
